﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 修改人：x
 * 时间：
 * 修改说明：
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>using System;
using Microsoft.AspNetCore.Mvc;
using seejee_Backendium.Core.Models;
using seejee_Backendium.Core.Models.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace seejee_Backendium.Core.Interfaces
{
    public interface IOperatorService
    {
        OperatorLoginResult ValidateOperator(string cOperatorName, string cOperatorPassword, bool forceLogin);
        OperatorLoginResult ValidateBIOperator(string cOperatorName, string cOperatorPassword, bool forceLogin);
        bool SaveToken(string cOperatorName, string tokenString);
        PagedResult<OperatorInfoDTO> GetAllOperator(int pageIndex, int pageSize, string keyword);
        bool UpdatePassword(OperatorPasswordDTO operatorUpdatePassword);
        bool UpdateOldPassword(string oldPassword, string newPassword, string cOperatorName);
        bool InsertOperator(OperatorInsertDTO operators);
        bool UpdateOperator(UpdateOperatorDTO user);
        bool DeleteOperator(string cOperatorName);
        bool UpdateOperatorOnlineStatus(string operatorName, bool isOnline);
        bool UpdateStateAsync(int iOperatorID, bool state);
        bool UpdateLastTime(string cOperatorName);
        bool SaveImage(string Base64Image, string cOperatorName);
        string GetImage(string cOperatorName);
    }
}
